﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmTestXPath.aspx.cs" Inherits="WCrawler.TestPages.frmTestXPath" ValidateRequest="False" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 62px;
        }
        .style2
        {
            width: 776px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width:100%;">
        <tr>
            <td class="style1">
    <asp:Label ID="Label2" runat="server" Text="Forum Url"></asp:Label>
            </td>
            <td class="style2">
    <asp:TextBox ID="txtForumUrl" runat="server" Width="100%"></asp:TextBox>
            </td>
            <td>
    <asp:Button ID="Button1" runat="server" onclick="btnLoad_Click" Text="Load" />
            </td>
        </tr>
        <tr>
            <td class="style1">
    <asp:Label ID="Label4" runat="server" Text="XPath"></asp:Label>
            </td>
            <td class="style2">
    <asp:TextBox ID="txtXPath" runat="server" Width="100%"></asp:TextBox>
            </td>
            <td>
    <asp:Button ID="btnFind" runat="server" onclick="btnFind_Click" Text="Find" />
            </td>
        </tr>
    </table>
    <div>
        <asp:Label ID="lblException" runat="server" ForeColor="Red"></asp:Label>
    </div>
    <table style="width:100%;">
        <tr>
            <td>
                <asp:Button ID="btnViewContent" runat="server" onclick="btnViewContent_Click" 
                    Text="View Content" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="txtHtmlContent" runat="server" Width="100%" Height="200px" 
                    TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td>
    <asp:Label ID="Label5" runat="server"><h1>Results</h1></asp:Label>
            </td>
            </tr>
            <tr>
            <td>
            <asp:GridView ID="gridViewResult" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" DataKeyNames="Results" Width="100%">
        <EmptyDataTemplate>
            <asp:Label ID="lblEmptySearchThread" runat="server" Font-Bold="True" 
                ForeColor="#0033CC"> No Results Found....  
            </asp:Label>
        </EmptyDataTemplate>
        <Columns>
            <asp:BoundField DataField="Results" HeaderText="Results" 
                SortExpression="Results" />
        </Columns>
        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
        <RowStyle BackColor="White" ForeColor="#330099" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        <SortedAscendingCellStyle BackColor="#FEFCEB" />
        <SortedAscendingHeaderStyle BackColor="#AF0101" />
        <SortedDescendingCellStyle BackColor="#F6F0C0" />
        <SortedDescendingHeaderStyle BackColor="#7E0000" />
    </asp:GridView>
    </td>
            </tr>
        
        </table>
    <br />
    </asp:Content>
